package com.niiwoo.civet.mobile.vo.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: wuke
 * @Description: 联系人信息
 * @Date: Created in 21:25 2017/11/23
 */
@Setter
@Getter
@ApiModel(description = "联系人信息")
public class LinkManInfoVO implements Serializable {
    private static final long serialVersionUID = -6212323083126059783L;

    @NotNull(message = "联系人关系不能为空")
    @ApiModelProperty(value = "联系人关系：1配偶、2父亲、3母亲、4兄弟、5姐妹、6子女、7其他、8同事、9朋友;")
    private Byte relation;

    @NotNull(message = "联系人姓名不能为空")
    @Size(min = 1,max = 20,message = "联系人姓名长度必须小于20个字符")
    @ApiModelProperty(value = "姓名")
    private String name;

    @NotNull(message = "联系人手机号不能为空")
    @ApiModelProperty(value = "联系人手机号")
    private String mobileNo;

    @ApiModelProperty(value = "联系人序号")
    private Long orderNo;
}
